#ifndef __KSVGEDITOR_UI_KSELECTMODESTRATEGY_H_
#define __KSVGEDITOR_UI_KSELECTMODESTRATEGY_H_

#include "kinteractionmodestrategy.h"

class KExportShape;

class KSelectModeStrategy:public KInteractionModeStrategy
{
public:
	explicit KSelectModeStrategy();
	~KSelectModeStrategy() override;

	void handleMousePress(const QPointF& scenePos, QMouseEvent* event) override;
	void handleMouseMove(const QPointF& scenePos, QMouseEvent* event) override;
	void handleMouseRelease(const QPointF& scenePos, QMouseEvent* event) override;
	void handleWheelEvent(QWheelEvent* event) override{};

private:
	bool isResizeCursor(Qt::CursorShape shape);
	void mouseRectSelect(const QRectF& selectionRect);

private:
	KExportShape* m_pMouseShape = nullptr;
};
#endif //__KSVGEDITOR_UI_KSELECTMODESTRATEGY_H_
